package com.winit.schedule.core.repository;

import java.util.List;

import com.winit.schedule.core.model.JobID;
import com.winit.schedule.core.repository.constants.JobStatus;
import com.winit.schedule.core.repository.entity.JobEntity;

/**
 * 作业信息持久化类
 * 
 * @author jianke.zhang 2015-3-30 上午10:46:04
 * @since 1.0
 */
public interface JobRepository {

    JobEntity saveJob(JobEntity job);

    void removeJob(JobID jobId);

    void updateJobStatus(JobID jobId, JobStatus status);

    List<JobEntity> queryAllJobs();

    JobEntity queryJobById(String jobId);

}
